var chart_1, chart_2;
document.addEventListener('show', function(event) {
	if(chart_1 != null && chart_1 != "" && chart_1 != undefined) {
		chart_1.dispose();
	}
	chart_1 = echarts.init(document.getElementById('chart_1'));
	chart_1.setOption({
		title: {
			text: '客户数量',
			left: 'center'
		},
		xAxis: {
			type: 'category',
			data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
		},
		yAxis: {
			type: 'value'
		},
		series: [{
			data: [820, 100, 901, 934, 1290, 1330, 1320, 932, 901, 934, 1290, 1330],
			type: 'bar'
		}]
	});
	if(chart_2 != null && chart_2 != "" && chart_2 != undefined) {
		chart_2.dispose();
	}
	chart_2 = echarts.init(document.getElementById('chart_2'));
	chart_2.setOption({
		title: {
			text: '贷款金额',
			left: 'center'
		},
		xAxis: {
			type: 'category',
			data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
		},
		yAxis: {
			type: 'value'
		},
		series: [{
			data: [820, 200, 901, 934, 1290, 1330, 1320, 932, 901, 934, 1290, 1330],
			type: 'bar'
		}]
	});
});